# 模拟enter键
import time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver = webdriver.Chrome()
driver.get("http://127.0.0.1:88/zentao/user-login-L3plbnRhby8=.html")
driver.find_element_by_id("account").send_keys("admin")
driver.find_element_by_name("password").send_keys("Hm12345@")
driver.find_element_by_name("password").send_keys(Keys.ENTER)
time.sleep(3)
driver.quit()
